package com.jacobson.huobi.common.constants

/**
 * kyc认证审核状态
 */
object KycAuthStatusConstant {

    //3-待编辑(初始，用户可编辑)
    private val TYPE_VALUE_3 = 3
    //4-待审核(不可编辑)
    private val TYPE_VALUE_4 = 4
    //5-审核通过
    private val TYPE_VALUE_5 = 5
    //6-审核不通过(用户可编辑)
    private val TYPE_VALUE_6 = 6


    public fun getRemarkByValue(value: Int): String {
        return when(value) {
            TYPE_VALUE_3 -> "未认证"
            TYPE_VALUE_4 -> "待审核"
            TYPE_VALUE_5 -> "审核通过"
            TYPE_VALUE_6 -> "审核不通过"
            else -> "未认证"
        }
    }

    public fun isUserEdit(value: Int): Boolean {
        if (value == TYPE_VALUE_3 || value == TYPE_VALUE_6) {
            return true
        }
        return false
    }
}